'use strict';

const user = require("./user");

module.exports = app => {
    const {
        STRING,
        INTEGER
    } = app.Sequelize;

    const VideoClassification = app.model.define('video_classification', {
        id: {
            type: INTEGER,
            primaryKey: true,
            autoIncrement: true
        },
        name: STRING(20),
    });

    // VideoClassification.associate = function () {

    //     app.model.VideoClassification.hasMany(app.model.Video, {
    //         foreignKey: 'publisher_id'
    //       });
    // }

    return VideoClassification;
};